package com.howlaisi.sms.student.exception;

import com.howlaisi.common.result.IResultCode;

/**
 * @author 张师傅
 * @date 2024/9/9
 */

public class StudentException extends RuntimeException {
    public IResultCode resultCode;

    public StudentException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public StudentException(String message) {
        super(message);
    }

    public StudentException(String message, Throwable cause) {
        super(message, cause);
    }

    public StudentException(Throwable cause) {
        super(cause);
    }
}
